# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=dovecot-fts-xapian
pkgver=1.3.3
pkgrel=0
pkgdesc="Dovecot xapian fts plugin"
url="https://github.com/grosjo/fts-xapian"
arch="all"
license="LGPL-2.1-or-later"
depends="dovecot xapian-core"
makedepends="automake autoconf libtool dovecot-dev xapian-core-dev icu-dev sqlite-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/grosjo/fts-xapian/archive/$pkgver.tar.gz"
builddir="$srcdir/"fts-xapian-$pkgver

prepare() {
	default_prepare
	libtoolize
	autoreconf -vif
}

build() {
	PANDOC=false ./configure \
		--enable-static=no \
		--with-dovecot=/usr/lib/dovecot
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="2ad40466d735dc57c297888efcd62af513fe7e674f23caaa63342f744cf7b1ecf7525bea1944386179538ca7e7fd748098f95a531b071382cdec12e1b7a5e02c  dovecot-fts-xapian-1.3.3.tar.gz"
